<html>
  <head>
	  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>i5ting_ztree_toc:readme</title>
		<link href="toc/style/github-bf51422f4bb36427d391e4b75a1daa083c2d840e.css" media="all" rel="stylesheet" type="text/css"/>
		<link href="toc/style/github2-d731afd4f624c99a4b19ad69f3083cd6d02b81d5.css" media="all" rel="stylesheet" type="text/css"/>
		<link href="toc/css/zTreeStyle/zTreeStyle.css" media="all" rel="stylesheet" type="text/css"/>
	  <style>
		pre {
		    counter-reset: line-numbering;
		    border: solid 1px #d9d9d9;
		    border-radius: 0;
		    background: #fff;
		    padding: 0;
		    line-height: 23px;
		    margin-bottom: 30px;
		    white-space: pre;
		    overflow-x: auto;
		    word-break: inherit;
		    word-wrap: inherit;
		}

		pre a::before {
		  content: counter(line-numbering);
		  counter-increment: line-numbering;
		  padding-right: 1em; /* space after numbers */
		  width: 25px;
		  text-align: right;
		  opacity: 0.7;
		  display: inline-block;
		  color: #aaa;
		  background: #eee;
		  margin-right: 16px;
		  padding: 2px 10px;
		  font-size: 13px;
		  -webkit-touch-callout: none;
		  -webkit-user-select: none;
		  -khtml-user-select: none;
		  -moz-user-select: none;
		  -ms-user-select: none;
		  user-select: none;
		}

		pre a:first-of-type::before {
		  padding-top: 10px;
		}

		pre a:last-of-type::before {
		  padding-bottom: 10px;
		}

		pre a:only-of-type::before {
		  padding: 10px;
		}

		.highlight { background-color: #ffffcc } /* RIGHT */
		</style>
  </head>
  <body>
	  <div>
				<div style='width:25%;'>
						<ul id="tree" class="ztree" style='width:100%'>

						</ul>
				</div>
        <div id='readme' style='width:70%;margin-left:20%;'>
          	<article class='markdown-body'>
            	<h1 id="-">品牌管理案例接口文档</h1>
<ul>
<li>数据接口访问地址<pre><code class="lang-js">  http://localhost:3333/
</code></pre>
</li>
<li><strong>该数据接口支持跨域请求</strong></li>
</ul>
<h2 id="-">获取品牌列表</h2>
<ul>
<li>在线接口地址: <code>/brandList</code></li>
<li>请求方式: <code>get</code></li>
<li>参数: 无</li>
<li>返回数据: json</li>
</ul>
<pre><code>{
    &quot;code&quot;: 200,
    &quot;msg&quot;: &quot;ok&quot;,
    &quot;message&quot;: [
        {
            &quot;id&quot;: 12,
            &quot;name&quot;: &quot;甲壳虫&quot;,
            &quot;ctime&quot;: 1564830886
        },
        {
            &quot;id&quot;: 11,
            &quot;name&quot;: &quot;mini&quot;,
            &quot;ctime&quot;: 1564830881
        }
    ]
}

</code></pre><h2 id="-">删除品牌</h2>
<ul>
<li>在线接口地址: <code>/brandDel/:id</code></li>
<li>请求方式: <code>delete</code></li>
<li>动态路由参数:<code>id</code></li>
<li>返回数据:json</li>
</ul>
<pre><code>{
    code: 200,
    msg: &quot;ok&quot;
}
</code></pre><h2 id="-">添加品牌</h2>
<ul>
<li>接口地址: <code>/brandAdd</code></li>
<li>请求方式: <code>post</code></li>
<li>请求体: <ul>
<li><code>name</code>: 品牌名称</li>
</ul>
</li>
<li>返回数据:json</li>
</ul>
<pre><code>{
    &quot;code&quot;: 200,
    &quot;msg&quot;: &quot;ok&quot;,
    &quot;id&quot;:100
}

</code></pre><h2 id="-">获取品牌信息</h2>
<ul>
<li>接口地址: <code>/brandDetail/:id</code></li>
<li>请求方式: <code>get</code></li>
<li>动态路由参数: <ul>
<li><code>id</code>: 品牌id</li>
</ul>
</li>
<li>返回数据:json</li>
</ul>
<pre><code>{
  &quot;code&quot;: 200,
  &quot;msg&quot;: &quot;ok&quot;,
  &quot;message&quot;: [
    {
      &quot;id&quot;: 26,
      &quot;name&quot;: &quot;小米10&quot;,
      &quot;ctime&quot;: 1603886959
    }
  ]
}
</code></pre><h2 id="-">更新品牌信息</h2>
<ul>
<li>接口地址: <code>/brandUpdate/:id</code></li>
<li>请求方式: <code>post</code></li>
<li>动态路由参数: <ul>
<li><code>id</code>: 品牌id</li>
</ul>
</li>
<li>请求体:<ul>
<li><code>name</code>:品牌名称</li>
</ul>
</li>
<li>返回数据:json</li>
</ul>
<pre><code>{
  &quot;code&quot;: 200,
  &quot;msg&quot;: &quot;ok&quot;
}
</code></pre>
          	</article>
        </div>
		</div>
  </body>
</html>
<script type="text/javascript" src="toc/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="toc/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="toc/js/ztree_toc.js"></script>
<script type="text/javascript" src="toc_conf.js"></script>

<SCRIPT type="text/javascript" >
<!--
$(document).ready(function(){
    var css_conf = eval(markdown_panel_style);
    $('#readme').css(css_conf)
    
    var conf = eval(jquery_ztree_toc_opts);
		$('#tree').ztree_toc(conf);
});
//-->
</SCRIPT>